<?php

class LoginForm extends Zend_Form {

    public function init() {
        $this->setName('Login');

        $this->addElement('text', 'usu_login', array(
            'filters' => array(
                'StringTrim',
                'StringToLower'
            ),
            'validators' => array(
                array('StringLength', false, array(3, 50))
            ),
            'required' => true,
            'label' => 'Login',
                )
        );

        $this->addElement('password', 'usu_senha', array(
            'filters' => array(
                'StringTrim'
            ),
            'validators' => array(
                'Alnum',
                array('StringLength', false, array(4, 50))
            ),
            'required' => true,
            'label' => 'Senha',
                )
        );

        $this->addElement('submit', 'submit', array(
            'required' => false,
            'ignore' => true,
            'label' => 'Entrar',
            'order' => 9
                )
        );
    }

}

?>
